package cn.mulanbay.business.bean;

import cn.mulanbay.persistent.enums.MessageSource;
import cn.mulanbay.persistent.enums.MessageType;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 *
 * @author fenghong
 * @create 2022-01-16 10:00
 */
public class UserMessageBean {

    private Long userId;
    private MessageType messageType;
    private MessageSource source;
    private Long sourceId;
    private String title;
    private String content;
    private LocalDateTime expectSendTime;
    /**
     * 哪台服务器节点
     */
    private String nodeId;
    /**
     * 代码（错误代码）
     */
    private Integer code;
    private String remark;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public MessageType getMessageType() {
        return messageType;
    }

    public void setMessageType(MessageType messageType) {
        this.messageType = messageType;
    }

    public MessageSource getSource() {
        return source;
    }

    public void setSource(MessageSource source) {
        this.source = source;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getExpectSendTime() {
        return expectSendTime;
    }

    public void setExpectSendTime(LocalDateTime expectSendTime) {
        this.expectSendTime = expectSendTime;
    }

    public String getNodeId() {
        return nodeId;
    }

    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
